package com.byb.server.service.mapper;

import com.byb.server.domain.*;
import com.byb.server.service.dto.PayRuleDescriptionDTO;

import org.mapstruct.*;

/**
 * Mapper for the entity PayRuleDescription and its DTO PayRuleDescriptionDTO.
 */
@Mapper(componentModel = "spring", uses = {})
public interface PayRuleDescriptionMapper extends EntityMapper <PayRuleDescriptionDTO, PayRuleDescription> {
    
    
    default PayRuleDescription fromId(Long id) {
        if (id == null) {
            return null;
        }
        PayRuleDescription payRuleDescription = new PayRuleDescription();
        payRuleDescription.setId(id);
        return payRuleDescription;
    }
}
